package com.aaa.sbms.controller;

import com.aaa.sbms.service.TrainResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @FileName:EResultContreller
 * @Description:
 * @Author :99728
 * @Date: 2020/6/18 17:36
 * @Version:1.0.0
 */
@RestController
@RequestMapping("EResult")
public class TrainResultContreller {
    @Autowired
    private TrainResultService trainResultService;

    @RequestMapping("page")
    public Object page(@RequestParam Map map){
        return trainResultService.getPage(map);
    }

    @RequestMapping("onelist")
    public Object onlist(int userid){
        return trainResultService.onelist(userid);
    }

    @RequestMapping("update")
    public Object update(@RequestBody Map map){
        return trainResultService.update(map);
    }

}
